package com.hzw.saas.web.sso.controller.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author sonam
 * @sine 2021/11/11 10:14 上午
 */
@Data
@ApiModel
public class PasswordRequest {
    @NotBlank(message = "用户名不能为空")
    @ApiParam(value = "用户名")
    private String username;
    @NotBlank(message = "用户密码不能为空")
    @ApiParam(value = "用户密码")
    private String password;
    @NotBlank(message = "客户端id不能为空")
    @ApiParam(value = "客户端id", required = true)
    private String client_id;
    @NotBlank(message = "客户端密钥不能为空")
    @ApiModelProperty(value = "客户端秘钥", required = true)
    private String client_secret;
}
